home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pcmagazi
/
1992
/
18
/
maketime.doc
< prev
next >
Wrap
Text File
|
1992-10-26
|
5KB
|
121 lines
This file, MAKETIME.DOC, is primarily designed to assist you in recompiling
WTIME. Instructions are given here for compilation using Borland
C++ 3.0, Borland's Turbo C++ for Windows 3.0, Microsoft's C/C++ 7.0, and
Microsoft's Quick C for Windows 1.00.
It should not be difficult to port this code to other platforms, especially
Borland C++ 2.0, Microsoft C 6.0, Microsoft C 5.1, and Zortech C++ 3.0.
If you port to Zortech, you may have a bit of work to do with the various
time functions (mktime(), _dos_settime(), _dos_setdate(), localtime()).
--John Deurbrouck
************************
WTime Complete File List
************************
MAKETIME.DOC This file, which explains how to create WTIME.HLP
and WTIME.EXE from the other files
HELPPLAN.DOC Help tracker file, organizational tool
WTIME.DOC WinWord 2.0 version of help file
WTIME.RTF Help file in Rich Text Format
WTIME.BMP WTime bitmap, used in help file
WTIME.HPJ Help project file, used to make WTIME.HLP
WTIME.HLP WTime Windows Help file
WTIME.C The C source that implements WTime
WTIME.H Header file for WTime, #included into CONFIG.DLG,
CONFIG.RC and WTIME.C
CONFIG.DLG Produced by the Dialog Editor, it's #included
into WTIME.RC to create WTIME.RES
WTIME.RC Resource script for WTime
WTIME.ICO Icon file used in the WTime executable
WTIME.DEF Definition file for WTime
WTIME.EXE WTime Windows executable
*********************************
Compile instructions -- WTIME.HLP
*********************************
You need the following files to compile the help:
WTIME.RTF
WTIME.BMP
WTIME.HPJ
I used Microsoft's help compiler, version 3.00b. It's available if
you GO MSL on CompuServe. It fixes problems older versions had with
RTF files produced by WinWord 2.0.
The command line to produce WTIME.HLP is simply
HC WTIME.HPJ
Note that you may have to change the 'ROOT' entry in WTIME.HPJ for
the help compiler to run correctly.
*********************************
Compile instructions -- WTIME.EXE
*********************************
You need the following files to compile the executable program:
WTIME.ICO
WTIME.RC
WTIME.DEF
WTIME.H
WTIME.C
CONFIG.DLG
*** QuickC for Windows Instructions ***
* Start Quick C for Windows
* Do Project|Open, select the directory your files are in, give the
project a name (like WTIME.MAK), and click OK, answer 'Y'es to create
* In the Edit dialog box, change file type to All Files (*.*), then
double click on WTIME.C, WTIME.RC and WTIME.DEF, click OK
* Ensure Options|Project is set to Windows EXE. You can change anything
else around you want, like memory model, optimizations, etc.
* Choose Project|Rebuild all. When the compile's done, WTIME.EXE is
ready to go
*** Microsoft C 7 Instructions ***
* Start PWB
* Do Project|New Project, select the directory your files are in and
name your project (like C:\MYWTIME\WTIME to put it into the C:\MYWTIME
directory and call it WTIME), then set the project template for
C runtime support and Windows EXE, then select OK to get rid of the
New Project dialog box
* In the Edit Project box, double click on WTIME.C, WTIME.RC and
WTIME.DEF, click on Save List
* Select Project|Rebuild All. When the compile's done, WTIME.EXE is
ready to go. If you want to run it from PWB, don't forget to start
WXServer from the Program Manager
*** Turbo C++ for Windows Instructions ***
* Open a DOS window and change into the directory where your files
are stored. Enter this command line:
RC -r WTIME.RC
* Start TCW (comes with Borland C++ 3.0, or available by itself)
* Do Project|Open project, choose the directory your files are in
and type a project name (WTIME.PRJ will do), click OK
* Choose Project|Add item... In the File Name box, type *.* and hit
Enter, then double click on WTIME.C, WTIME.RC and WTIME.DEF, then
click the Done button
* Click Options|Application... and ensure the current settings include
linker output as Windows EXE, prolog/epilog as Windows all functions
exportable, model can be anything (I used small), and SS Equals DS
(default for memory model). Click OK when that's all right.
* Select Compile|Build all. You are *not* done when the Compile Status
box says Success. Click OK, then go back to your DOS box and enter
this command line:
RC -t WTIME.RES WTIME.EXE
Now the program is ready to go, and can be run from TCW by
pressing Control-F9
*** Borland C++ 3.0 Instructions ***
* Start BC
* Do Project|Open project, get your complete path and filename into the
top line of the dialog box (C:\MYWTIME\WTIME.PRJ is fine), then click
on OK
* Select Project|Add item..., enter *.* in the Name box and hit Enter,
then double click on WTIME.C, WTIME.RC and WTIME.DEF, then click Done
* Under Options|Application..., select Windows App and hit OK
* Select Compile|Build all. When the compile is done, the program is ready
to go. You cannot start WTIME.EXE from BC, even if you're running BC
in a window under Windows. Do a Program Manager File|Run, or run TDW